<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>自定义java Swing日历选择组件JCalendarChooser - B_H_L的专栏 - 博客频道 - CSDN.NET</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="package cn.net.iem.view.mainframe;import java.awt.BorderLayout;import java.awt.FlowLayout;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.GridLayout;import java">
<script src="8619583_files/log.js" async="" charset="utf-8"></script><script src="8619583_files/ga.js" async="" type="text/javascript"></script><script src="8619583_files/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="8619583_files/ad.js"></script>
<link rel="Stylesheet" type="text/css" href="8619583_files/style_002.css">
<link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="http://blog.csdn.net/B_H_L/rss/list">
<link rel="shortcut icon" href="http://blog.csdn.net/favicon.ico">
<link type="text/css" rel="stylesheet" href="8619583_files/default.css">
<link href="8619583_files/style.css" rel="stylesheet" type="text/css"></head>
<body>
<script src="8619583_files/pub_topnav_2011.js" type="text/javascript"></script><link rel="stylesheet" type="text/css" href="8619583_files/navtop_2012.css">
<div class="nav_top_2011">
<p><span style="color:red;">您还未登录！</span>|<a href="https://passport.csdn.net/account/login" target="_top">登录</a>|<a href="https://passport.csdn.net/account/register" target="_top">注册</a>|<a href="https://passport.csdn.net/help/faq" target="_blank">帮助</a></p><ul>
<li><a href="http://www.csdn.net/" target="_blank" style="color: red;">首页</a></li>
<li><a href="http://news.csdn.net/" target="_blank">业界</a></li>
<li><a href="http://mobile.csdn.net/" target="_blank">移动</a></li>
<li><a href="http://cloud.csdn.net/" target="_blank">云计算</a></li>
<li><a href="http://sd.csdn.net/" target="_blank">研发</a></li>
<li><a href="http://bbs.csdn.net/" target="_blank">论坛</a></li>
<li><a href="http://blog.csdn.net/" target="_blank">博客</a></li>
<li><a href="http://download.csdn.net/" target="_blank">下载</a></li>
<li class="more"><h2 id="topnav_btnmore" onclick="showNavMore(this)"><a href="javascript:void(0);">更多</a></h2>
<div id="topnav_hidlist">
<iframe name="nav_frm" src="8619583_files/a_002.htm" frameborder="no" height="178" scrolling="no" width="92"></iframe>
</div>
</li>
</ul>
</div>


<div id="container">
<div id="header">
    <div class="header">
        <div id="blog_title">
            <h1><a href="http://blog.csdn.net/b_h_l">B_H_L的专栏</a></h1>
            <h2></h2>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg"></div>
    <div class="navigator">
        <ul>
            <li id="btnContents"><a href="http://blog.csdn.net/b_h_l?viewmode=contents"><span><img src="8619583_files/ico_list.gif">目录视图</span></a></li>
            <li id="btnView"><a href="http://blog.csdn.net/b_h_l?viewmode=list"><span><img src="8619583_files/ico_summary.gif">摘要视图</span></a></li>
            <li id="btnRss"><a href="http://blog.csdn.net/b_h_l/rss/list"><span><img src="8619583_files/ico_rss.gif">订阅</span></a></li>
</ul>
    </div>
</div>
<script type="text/javascript">
    var username = "B_H_L";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/b_h_l";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";
</script>

<div id="body">
<div id="main">
<div class="main">
<div class="notice"> 

<a href="https://code.csdn.net/blog/12" target="_blank">
<font color="red">公告：博客新增直接引用代码功能</font></a>



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://www.csdn.net/article/2013-07-24/2816320" target="_blank"><font color="blue">专访谭海燕：移动互联网开发的那些事
</font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/csdnproduct/article/details/9226265" target="_blank">
<font color="red">CSDN博客频道自定义摘要、图片水印、热门标签等功能上线啦 


 </font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/blogdevteam/article/details/9136613" target="_blank">
<font color="red">CSDN博客第二期云计算最佳博主评选

 </font></a>


&nbsp;&nbsp;&nbsp;&nbsp;

<a href="" target="_blank">
<font color="blue">
 </font></a>




</div>
<div id="article_details" class="details">
    <div class="article_title">
    <span class="ico ico_type_Original"></span>
    <h3>
        <span class="link_title"><a href="http://blog.csdn.net/b_h_l/article/details/8619583">
        自定义java Swing日历选择组件JCalendarChooser
        </a></span>
    </h3>
</div>

        
    <div class="article_manage">
        <span class="link_categories">
        分类：
            <a href="http://blog.csdn.net/B_H_L/article/category/1142127">java</a> 
        </span>
    <span class="link_postdate">2013-02-27 21:54</span>
    <span class="link_view" title="阅读次数">228人阅读</span>
    <span class="link_comments" title="评论次数"><a href="#comments">评论</a>(0)</span>
    <span class="link_collect"><a href="javascript:void(0);" onclick="javascript:collectArticle('自定义java Swing日历选择组件JCalendarChooser','8619583');return false;" title="收藏">收藏</a></span>
    <span class="link_report"><a href="#report" onclick="javascript:report(8619583,2);return false;" title="举报">举报</a></span>
    
</div>


    
<div id="article_content" class="article_content">

<p><img src="8619583_files/1361973732_6589.jpg" alt=""></p>
<p><br>
</p>
<p></p>
<div class="dp-highlighter bg_java"><div class="bar"><div class="tools"><b>[java]</b> <a href="#" class="ViewSource" title="view plain" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;">view plain</a><a href="#" class="CopyToClipboard" title="copy" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;">copy</a><a href="#" class="PrintSource" title="print" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;">print</a><a href="#" class="About" title="?" onclick="dp.sh.Toolbar.Command('About',this);return false;">?</a><div style="position: absolute; left: 831px; top: 736px; width: 18px; height: 18px; z-index: 99;"><embed id="ZeroClipboardMovie_1" src="8619583_files/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" name="ZeroClipboardMovie_1" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=1&amp;width=18&amp;height=18" wmode="transparent" align="middle" height="18" width="18"></div></div></div><ol class="dp-j" start="1"><li class="alt"><span><span class="keyword">package</span><span>&nbsp;cn.net.iem.view.mainframe;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.BorderLayout;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.FlowLayout;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.GridBagConstraints;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.GridBagLayout;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.GridLayout;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.Label;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.event.ActionEvent;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.event.ActionListener;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.event.MouseEvent;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.event.MouseListener;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;javax.swing.JButton;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;javax.swing.JComboBox;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;javax.swing.JLabel;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;javax.swing.JPanel;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;javax.swing.SwingConstants;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;cn.net.iem.calendar.JCalendarChooser;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;cn.net.iem.view.EditJTextField;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;cn.net.iem.view.loggin.Loggin;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="comment">/*</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发震时间</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;longitude&nbsp;经度</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;altitude&nbsp;&nbsp;纬度</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;depth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;深度</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;magnitude&nbsp;震级</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;location&nbsp;&nbsp;参考位置</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;*&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">public</span><span>&nbsp;</span><span class="keyword">class</span><span>&nbsp;SearchPane&nbsp;</span><span class="keyword">extends</span><span>&nbsp;JPanel&nbsp;</span><span class="keyword">implements</span><span>&nbsp;ActionListener,MouseListener&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//编辑属性</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//private&nbsp;JComboBox&nbsp;regionComBox;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;EditJTextField&nbsp;minTimeField,maxTimeField,minLongitudeField,maxLongitudeField,minAltitudeField,maxAltitudeField,&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minDepthField,maxDepthField,minMagnitudeField,maxMagnitudeField,locationField;&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;JButton&nbsp;searchBut;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//保存编辑属性后的结果</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;String&nbsp;minTime;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;String&nbsp;maxTime;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;minLongitude;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;maxLongitude;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;minAltitude;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;maxAltitude;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">int</span><span>&nbsp;minDepth;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">int</span><span>&nbsp;maxDepth;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;minMagnitude;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">float</span><span>&nbsp;maxMagnitude;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;String&nbsp;location;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;SearchPane(){&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">super</span><span>();&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initial(<span class="number">10</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create();&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addListener();&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">/**</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*初始化类属性</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;initial(</span><span class="keyword">int</span><span>&nbsp;size){&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minTimeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxTimeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minLongitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxLongitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minAltitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxAltitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minDepthField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxDepthField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minMagnitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxMagnitudeField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;locationField=<span class="keyword">new</span><span>&nbsp;EditJTextField(size);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBut=<span class="keyword">new</span><span>&nbsp;JButton(</span><span class="string">"查询"</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">/**</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*组件添加监听器</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;addListener(){&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchBut.addActionListener(<span class="keyword">this</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minTimeField.addMouseListener(<span class="keyword">this</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxTimeField.addMouseListener(<span class="keyword">this</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">/**</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*创建面板&nbsp;</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;create(){&nbsp;&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label1=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"发震时间："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label3=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"经度："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label4=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"纬度："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label5=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"深度(千米)："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label6=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"震级(M)："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label7=<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"位置(支持模糊查询)："</span><span>,JLabel.RIGHT);&nbsp;&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JPanel&nbsp;pane1=<span class="keyword">new</span><span>&nbsp;JPanel();&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pane1.add(searchBut);&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JPanel&nbsp;pane2=<span class="keyword">new</span><span>&nbsp;JPanel();&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pane2.setLayout(<span class="keyword">new</span><span>&nbsp;GridBagLayout());&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//设置网格组布局管理器的参数</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GridBagConstraints&nbsp;constraints=<span class="keyword">new</span><span>&nbsp;GridBagConstraints();&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//使用网格组布局添加控件</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label1,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;minTimeField,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;到&nbsp;"</span><span>),&nbsp;constraints,&nbsp;</span><span class="number">3</span><span>,</span><span class="number">0</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;maxTimeField,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">4</span><span>,</span><span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span>),&nbsp;&nbsp;&nbsp;constraints,&nbsp;</span><span class="number">6</span><span>,</span><span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label3,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">8</span><span>,</span><span class="number">0</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;minLongitudeField,constraints,&nbsp;<span class="number">9</span><span>,</span><span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;到&nbsp;"</span><span>),&nbsp;constraints,</span><span class="number">11</span><span>,</span><span class="number">0</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;maxLongitudeField,constraints,<span class="number">12</span><span>,</span><span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label4,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">0</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;minAltitudeField,&nbsp;constraints,&nbsp;<span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;到&nbsp;"</span><span>),&nbsp;constraints,&nbsp;</span><span class="number">3</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;maxAltitudeField,&nbsp;constraints,&nbsp;<span class="number">4</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span>),&nbsp;&nbsp;&nbsp;constraints,&nbsp;</span><span class="number">6</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label5,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">8</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;minDepthField,&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">9</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;到&nbsp;"</span><span>),&nbsp;constraints,</span><span class="number">11</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;maxDepthField,&nbsp;&nbsp;&nbsp;&nbsp;constraints,<span class="number">12</span><span>,</span><span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label6,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">0</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;minMagnitudeField,constraints,&nbsp;<span class="number">1</span><span>,</span><span class="number">2</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;到&nbsp;"</span><span>),&nbsp;constraints,&nbsp;</span><span class="number">3</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;maxMagnitudeField,constraints,&nbsp;<span class="number">4</span><span>,</span><span class="number">2</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(</span><span class="string">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span>),&nbsp;&nbsp;&nbsp;constraints,&nbsp;</span><span class="number">6</span><span>,</span><span class="number">2</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;label7,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">8</span><span>,</span><span class="number">2</span><span>,</span><span class="number">1</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loggin.add(pane2,&nbsp;locationField,&nbsp;&nbsp;&nbsp;&nbsp;constraints,&nbsp;<span class="number">9</span><span>,</span><span class="number">2</span><span>,</span><span class="number">5</span><span>,</span><span class="number">1</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>,</span><span class="number">0</span><span>);&nbsp;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">this</span><span>.setLayout(</span><span class="keyword">new</span><span>&nbsp;BorderLayout());&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">this</span><span>.add(pane2,BorderLayout.NORTH);&nbsp;&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">this</span><span>.add(pane1,BorderLayout.SOUTH);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="annotation">@Override</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;actionPerformed(ActionEvent&nbsp;e)&nbsp;{&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span><span>(e.getSource()==searchBut){&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//打开查询界面</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">new</span><span>&nbsp;SearchFrame().setVisible(</span><span class="keyword">true</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="annotation">@Override</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;mouseClicked(MouseEvent&nbsp;e)&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//&nbsp;TODO&nbsp;Auto-generated&nbsp;method&nbsp;stub</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span><span>(e.getSource()==minTimeField&amp;&amp;e.getButton()==MouseEvent.BUTTON1){&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JCalendarChooser&nbsp;myJCalendar&nbsp;=&nbsp;<span class="keyword">new</span><span>&nbsp;JCalendarChooser(minTimeField);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">int</span><span>&nbsp;returnValue&nbsp;=&nbsp;myJCalendar.showOpenDialog();&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span><span>&nbsp;(returnValue&nbsp;==&nbsp;JCalendarChooser.CLEAR_OPTION)&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minTimeField.setText(<span class="string">""</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(returnValue&nbsp;==&nbsp;JCalendarChooser.APPROVE_OPTION)&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minTimeField.setText(myJCalendar.getDate());&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>(e.getSource()==maxTimeField&amp;&amp;e.getButton()==MouseEvent.BUTTON1){&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JCalendarChooser&nbsp;myJCalendar&nbsp;=&nbsp;<span class="keyword">new</span><span>&nbsp;JCalendarChooser(maxTimeField);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">int</span><span>&nbsp;returnValue&nbsp;=&nbsp;myJCalendar.showOpenDialog();&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span><span>&nbsp;(returnValue&nbsp;==&nbsp;JCalendarChooser.CLEAR_OPTION)&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxTimeField.setText(<span class="string">""</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(returnValue&nbsp;==&nbsp;JCalendarChooser.APPROVE_OPTION)&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maxTimeField.setText(myJCalendar.getDate());&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;mouseEntered(MouseEvent&nbsp;e)&nbsp;{}&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;mouseExited(MouseEvent&nbsp;e)&nbsp;{}&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;mousePressed(MouseEvent&nbsp;e)&nbsp;{}&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;mouseReleased(MouseEvent&nbsp;e)&nbsp;{}&nbsp;&nbsp;</span></span></li><li class="alt"><span>}&nbsp;&nbsp;</span></li></ol></div><pre style="display: none;" name="code" class="java">package cn.net.iem.view.mainframe;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import cn.net.iem.calendar.JCalendarChooser;
import cn.net.iem.view.EditJTextField;
import cn.net.iem.view.loggin.Loggin;
/*
 	 * @param time      发震时间
	 * @param longitude 经度
	 * @param altitude  纬度
	 * @param depth     深度
	 * @param magnitude 震级
	 * @param location  参考位置
 * */
public class SearchPane extends JPanel implements ActionListener,MouseListener {
	//编辑属性
	//private JComboBox regionComBox;              
	private EditJTextField minTimeField,maxTimeField,minLongitudeField,maxLongitudeField,minAltitudeField,maxAltitudeField,
	                       minDepthField,maxDepthField,minMagnitudeField,maxMagnitudeField,locationField;
	private JButton searchBut;
	//保存编辑属性后的结果
	private String minTime;
	private String maxTime;
	private float minLongitude;
	private float maxLongitude;
	private float minAltitude;
	private float maxAltitude;
	private int minDepth;
	private int maxDepth;
	private float minMagnitude;
	private float maxMagnitude;
	private String location;
	public SearchPane(){
		super();
		initial(10);
		create();
		addListener();
	}
	/**
	 *初始化类属性
	 * */
	private void initial(int size){
		minTimeField=new EditJTextField(size);
		maxTimeField=new EditJTextField(size);
		minLongitudeField=new EditJTextField(size);
		maxLongitudeField=new EditJTextField(size);
		minAltitudeField=new EditJTextField(size);
		maxAltitudeField=new EditJTextField(size);
        minDepthField=new EditJTextField(size);
        maxDepthField=new EditJTextField(size);
        minMagnitudeField=new EditJTextField(size);
        maxMagnitudeField=new EditJTextField(size);
        locationField=new EditJTextField(size);
        searchBut=new JButton("查询");
	}
	/**
	 *组件添加监听器
	 * */
	private void addListener(){
		searchBut.addActionListener(this);
		minTimeField.addMouseListener(this);
		maxTimeField.addMouseListener(this);
	} 
	/**
	 *创建面板 
	 * */
	private void create(){	
		JLabel label1=new JLabel("发震时间：",JLabel.RIGHT);
		JLabel label3=new JLabel("经度：",JLabel.RIGHT);
		JLabel label4=new JLabel("纬度：",JLabel.RIGHT);
		JLabel label5=new JLabel("深度(千米)：",JLabel.RIGHT);
		JLabel label6=new JLabel("震级(M)：",JLabel.RIGHT);
		JLabel label7=new JLabel("位置(支持模糊查询)：",JLabel.RIGHT);  
		JPanel pane1=new JPanel();
		pane1.add(searchBut);
		JPanel pane2=new JPanel();
		pane2.setLayout(new GridBagLayout());
        //设置网格组布局管理器的参数
        GridBagConstraints constraints=new GridBagConstraints();
        //使用网格组布局添加控件
        Loggin.add(pane2, label1,           constraints, 0,0,1,1,0,0,0,0); 
        Loggin.add(pane2, minTimeField,     constraints, 1,0,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel(" 到 "), constraints, 3,0,1,1,0,0,0,0); 
        Loggin.add(pane2, maxTimeField,     constraints, 4,0,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel("        "),   constraints, 6,0,2,1,0,0,0,0); 
        Loggin.add(pane2, label3,           constraints, 8,0,1,1,0,0,0,0); 
        Loggin.add(pane2, minLongitudeField,constraints, 9,0,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel(" 到 "), constraints,11,0,1,1,0,0,0,0);
        Loggin.add(pane2, maxLongitudeField,constraints,12,0,2,1,0,0,0,0);      
        Loggin.add(pane2, label4,           constraints, 0,1,1,1,0,0,0,0); 
        Loggin.add(pane2, minAltitudeField, constraints, 1,1,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel(" 到 "), constraints, 3,1,1,1,0,0,0,0); 
        Loggin.add(pane2, maxAltitudeField, constraints, 4,1,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel("        "),   constraints, 6,1,2,1,0,0,0,0); 
        Loggin.add(pane2, label5,           constraints, 8,1,1,1,0,0,0,0); 
        Loggin.add(pane2, minDepthField,    constraints, 9,1,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel(" 到 "), constraints,11,1,1,1,0,0,0,0);
        Loggin.add(pane2, maxDepthField,    constraints,12,1,2,1,0,0,0,0);   
        Loggin.add(pane2, label6,           constraints, 0,2,1,1,0,0,0,0); 
        Loggin.add(pane2, minMagnitudeField,constraints, 1,2,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel(" 到 "), constraints, 3,2,1,1,0,0,0,0); 
        Loggin.add(pane2, maxMagnitudeField,constraints, 4,2,2,1,0,0,0,0); 
        Loggin.add(pane2, new JLabel("        "),   constraints, 6,2,2,1,0,0,0,0); 
        Loggin.add(pane2, label7,           constraints, 8,2,1,1,0,0,0,0); 
        Loggin.add(pane2, locationField,    constraints, 9,2,5,1,0,0,0,0); 
        
        this.setLayout(new BorderLayout());
		this.add(pane2,BorderLayout.NORTH);	
		this.add(pane1,BorderLayout.SOUTH);
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource()==searchBut){
			//打开查询界面
			new SearchFrame().setVisible(true);
		}
	}
	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		if(e.getSource()==minTimeField&amp;&amp;e.getButton()==MouseEvent.BUTTON1){
			JCalendarChooser myJCalendar = new JCalendarChooser(minTimeField);
			int returnValue = myJCalendar.showOpenDialog();
			if (returnValue == JCalendarChooser.CLEAR_OPTION)
				minTimeField.setText("");
			else if (returnValue == JCalendarChooser.APPROVE_OPTION)
				minTimeField.setText(myJCalendar.getDate());
		}else if(e.getSource()==maxTimeField&amp;&amp;e.getButton()==MouseEvent.BUTTON1){
			JCalendarChooser myJCalendar = new JCalendarChooser(maxTimeField);
			int returnValue = myJCalendar.showOpenDialog();
			if (returnValue == JCalendarChooser.CLEAR_OPTION)
				maxTimeField.setText("");
			else if (returnValue == JCalendarChooser.APPROVE_OPTION)
				maxTimeField.setText(myJCalendar.getDate());
		}
	}
	public void mouseEntered(MouseEvent e) {}
	public void mouseExited(MouseEvent e) {}
	public void mousePressed(MouseEvent e) {}
	public void mouseReleased(MouseEvent e) {}
}
</pre><br>
<br>
<p></p>

</div>

<div class="share_buttons" id="sharePanel"><span>分享到：</span> <a name="sina" class="share_sina" title="分享到新浪微博"></a><a name="qq" class="share_qq" title="分享到腾讯微博"></a></div>
<!--192.168.100.33-->
<div class="article_next_prev">
    <li class="prev_article"><span>上一篇：</span><a href="http://blog.csdn.net/b_h_l/article/details/8520664">SwingWorker</a></li>
    <li class="next_article"><span>下一篇：</span><a href="http://blog.csdn.net/b_h_l/article/details/8623490">介绍JDIC(JDesktop Integration Components)</a></li>
</div>


            <div id="digg" articleid="8619583">
            <dl id="btnDigg" class="digg digg_disable">
                <dt>顶</dt>
                <dd>0</dd>
            </dl>
            <dl id="btnBury" class="digg digg_disable">
                <dt>踩</dt>
                <dd>0</dd>
            </dl>
        </div>

</div>
<div id="ad_cen">
<script type="text/javascript">BAIDU_CLB_SLOT_ID = "117306";</script>
<script type="text/javascript" src="8619583_files/o.js"></script><script charset="utf-8" src="8619583_files/ecom"></script><script type="text/javascript"><!--
google_ad_client = "ca-pub-1076724771190722";
/* blog正文下方728x90 */
google_ad_slot = "4497271841";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="8619583_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_0_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="90" scrolling="no" width="728"></iframe></ins></ins>
</div>
<script type="text/javascript">
    //new Ad(4, 'ad_cen');
</script>
<div id="comment_title" class="panel_head">查看评论<a name="comments"></a></div>
<div id="comment_list"><br>&nbsp;&nbsp;暂无评论<br><br><div class="clear"></div></div>
<div id="comment_bar"></div>
<div id="comment_form"><div class="guest_link">您还没有登录,请<a href="javascript:void(0);" onclick="javascript:csdn.showLogin(function (dat) {js_logined(dat.data.userName);});">[登录]</a>或<a href="http://passport.csdn.net/account/register?from=http%3A%2F%2Fblog.csdn.net%2Fb_h_l%2Farticle%2Fdetails%2F8619583">[注册]</a></div></div>
<div class="announce">* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
<script type="text/javascript">
    var fileName = '8619583';
    var commentscount = 0;
    var islock = false
</script>
<script type="text/javascript" src="8619583_files/comment.js"></script>
<div id="ad_bot"><iframe src="8619583_files/ad.htm" style="border-width: 0px; overflow: hidden; width: 738px; height: 170px;" id="ad_frm_0" frameborder="0" scrolling="no"></iframe></div>
<script type="text/javascript">
    new Ad(5, 'ad_bot');
</script>
<div id="report_dialog"></div>

<div id="d-top" style="">
<a id="d-top-a" href="#" title="回到顶部">
<img src="8619583_files/top.png" alt="TOP"></a>
</div>
<script type="text/javascript">
    $(function(){
        var d_top=$('#d-top');
        document.onscroll=function(){
            var scrTop=(document.body.scrollTop||document.documentElement.scrollTop);
            if(scrTop>500){
                d_top.show();
            }else{
                d_top.hide();
            }
        }
        $('#d-top-a').click(function(){
            scrollTo(0,0);
            this.blur();
            return false;
        });
    });
</script>

<div class="clear"></div>
</div>
</div>

<div id="side">
<div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/B_H_L" target="_blank">
    <img src="8619583_files/1_b_h_l.gif" title="访问我的空间" style="max-width:90%">
    </a>
    <br>
    <span><a href="http://my.csdn.net/B_H_L" class="user_name" target="_blank">B_H_L</a></span>
</div>
<div class="interact">
<a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]"></a>
<a href="javascript:void(0);" class="letter" onclick="loginto(1)" title="[发私信]"></a>
</div>
<div id="blog_medal">
<div id="bms_box"><a href="http://medal.blog.csdn.net/allmedal.aspx" target="_blank"><img src="8619583_files/holdon_s2.gif" onmouseover="m_over_m(this,0)" onmouseout="m_out_m()" alt=""></a></div></div>
<ul id="blog_rank">
    <li>访问：<span>55702次</span></li>
    <li>积分：<span>1168分</span></li>
    <li>排名：<span>第9028名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>33篇</span></li>
    <li>转载：<span>168篇</span></li>
    <li>译文：<span>1篇</span></li>
    <li>评论：<span>10条</span></li>
</ul>
</ul>
</div>

<div class="panel">
<ul class="panel_body" style="padding:0;">
<script type="text/javascript" src="8619583_files/m.js"></script> 
<script type="text/javascript"> 
BAIDU_CLB_preloadSlots("724643","117306"); 
</script><script charset="utf-8" src="8619583_files/ecom_002"></script>
<script type="text/javascript">BAIDU_CLB_fillSlot("724643");</script><div id="baidu_clb_slot_724643"><iframe id="baidu_clb_slot_iframe_724643" src="8619583_files/a_002.htm" onload="BAIDU_CLB_renderFrame('724643')" vspace="0" hspace="0" allowtransparency="true" marginheight="0" marginwidth="0" style="border: 0; vertical-align: bottom; margin: 0; display: block;" frameborder="0" height="250" scrolling="no" width="200"></iframe></div> 
</ul>
</div>
<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" class="blogsearch" title="请输入关键字" type="text"></span>
        <input id="btnSubmit" value="搜索" title="search in blog" type="submit">
        <input name="q" id="inputQ" type="hidden">
        <input name="t" value="blog" type="hidden">
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div><div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1142127">java</a><span>(59)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1142178">MFC</a><span>(20)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1143903">JSP</a><span>(7)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1143998">DB</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1144593">data structure</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1155401">AJAX</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1169079">oracle</a><span>(6)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1173497">C</a><span>(53)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1175520">ubuntu</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1194664">linux</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1246314">算法</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1257779">C++</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1275520">杂谈</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1278828">杀毒引擎</a><span>(5)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1284556">软件工程</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1298190">百度地图</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1357678">Mysql</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1466035">data mining</a><span>(16)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/category/1508953">python</a><span>(12)</span>
</li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list"><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/07">2013年07月</a><span>(31)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/06">2013年06月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/05">2013年05月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/04">2013年04月</a><span>(2)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/03">2013年03月</a><span>(23)</span></li><span class="hidelist" style="display:none;"><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/02">2013年02月</a><span>(4)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2013/01">2013年01月</a><span>(5)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/12">2012年12月</a><span>(4)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/11">2012年11月</a><span>(5)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/10">2012年10月</a><span>(3)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/09">2012年09月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/08">2012年08月</a><span>(20)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/07">2012年07月</a><span>(49)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/06">2012年06月</a><span>(5)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/05">2012年05月</a><span>(40)</span></li><li><a href="http://blog.csdn.net/b_h_l/article/month/2012/03">2012年03月</a><span>(3)</span></li></span><div id="archive_list_button" class="list_closed">展开</div></div>
</ul>
</div>
<div id="hotarticls" class="panel">
<ul class="panel_head"><span>阅读排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7858532" title="C怎样定义和声明全局变量和函数最好？">C怎样定义和声明全局变量和函数最好？</a><span>(2431)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7581519" title="char与TCHAR相互转化">char与TCHAR相互转化</a><span>(2039)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7767829" title="java 从jar包中读取资源文件">java 从jar包中读取资源文件</a><span>(1711)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8261694" title="如何在网页中调用百度地图API">如何在网页中调用百度地图API</a><span>(1673)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7581335" title="Jni函数调用大全">Jni函数调用大全</a><span>(1516)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7869083" title="C 空指针(NULL)与0的区别">C 空指针(NULL)与0的区别</a><span>(1481)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7771944" title="java  JTable排序和过滤(JDK 6.0新功能)">java  JTable排序和过滤(JDK 6.0新功能)</a><span>(1447)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7701783" title="C常量指针 与指针常量区别">C常量指针 与指针常量区别</a><span>(1025)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7717744" title="MFC 打开外部文件 WinExec，ShellExecute ，CreateProcess">MFC 打开外部文件 WinExec，ShellExecute ，CreateProcess</a><span>(979)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7877607" title="C函数printf中不能使用%lf,而用%f输出double，而函数scanf却必须用%lf来输入double">C函数printf中不能使用%lf,而用%f输出double，而函数scanf却必须用%lf来输入double</a><span>(927)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7771944" title="java  JTable排序和过滤(JDK 6.0新功能)">java  JTable排序和过滤(JDK 6.0新功能)</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7699270" title="ubuntu12.04 修改mysql配置文件my.cnf编码出错---解决方法">ubuntu12.04 修改mysql配置文件my.cnf编码出错---解决方法</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7349248" title="c++与c混编">c++与c混编</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7899913" title="C无符号数和有符号数探讨">C无符号数和有符号数探讨</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/7598585" title="BufferedReader之mark与reset初探">BufferedReader之mark与reset初探</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8710896" title="java并发编程4：原子变量与非阻塞算法">java并发编程4：原子变量与非阻塞算法</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8624691" title="如何混排Swing和AWT组件">如何混排Swing和AWT组件</a><span>(0)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8627482" title="大型企业ORACLE数据库RAC应用方案">大型企业ORACLE数据库RAC应用方案</a><span>(0)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8468354" title="NIO与传统IO的区别">NIO与传统IO的区别</a><span>(0)</span>
</li>
<li>
<a href="http://blog.csdn.net/b_h_l/article/details/8266899" title="JDIC 中利用WebBrowser内置浏览器到java application中">JDIC 中利用WebBrowser内置浏览器到java application中</a><span>(0)</span>
</li>
</ul>
</div>
<div id="homepageArticles" class="panel">
<ul class="panel_head"><span>推荐文章</span></ul>
<ul class="panel_body" id="ad_commend"><iframe src="8619583_files/ad_002.htm" style="border-width: 0px; overflow: hidden; width: 194px; height: 272px;" id="ad_frm_1" frameborder="0" scrolling="no"></iframe></ul>
</div>
<script type="text/javascript">
 new Ad(12, 'ad_commend');
</script><div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/8710896#comments">java并发编程4：原子变量与非阻塞算法</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/u011277203" class="user_name">rigel_xiaohu</a>:
http://blog.csdn.net/u011277203/article/details/92...
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7771944#comments">java  JTable排序和过滤(JDK 6.0新功能)</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/w740441006" class="user_name">w740441006</a>:
好样的，解了燃眉之急！！！
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7771944#comments">java  JTable排序和过滤(JDK 6.0新功能)</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/u010016070" class="user_name">liulingge</a>:
好，好，好，好，好
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7598585#comments">BufferedReader之mark与reset初探</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/xiaoqingao" class="user_name">放开那个衰锅</a>:
不太明白 曾经尝试使用mark 和reset始终用不起来 感觉不起什么作用
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7771944#comments">java  JTable排序和过滤(JDK 6.0新功能)</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/minglaihan" class="user_name">summerhai</a>:
灰常感谢！
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7899913#comments">C无符号数和有符号数探讨</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/wry2008wry" class="user_name">wry2008wry</a>:
大类型-》小类型是截取低位（小端序是高字节）。unsigned int a = 0x00000068...
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/8218193#comments">软件测试</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/steven_razor" class="user_name">steven_razor</a>:
都说 测试案例 要具体到每个细节，就是要将 功能 细化，可是总感觉 有些案例不满足 等价类划分的规则...
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7349248#comments">c++与c混编</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Yunxiang_Lon" class="user_name">Yunxiang_Lon</a>:
写的非常好！看后很有收获！
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7699270#comments">ubuntu12.04 修改mysql配置文件my.cnf编码出错---解决方法</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/batelei" class="user_name">batelei</a>:
启动失败了啊，大哥。我按照你说的那样去做了，不行的。呵呵呵
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/B_H_L/article/details/7699270#comments">ubuntu12.04 修改mysql配置文件my.cnf编码出错---解决方法</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/batelei" class="user_name">batelei</a>:
不行啊，还是启动不了的
    </p>
    </li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>

<script type="text/javascript" src="8619583_files/newblog.js"></script>
<script type="text/javascript" src="8619583_files/showblogmedal.js"></script>

<script type="text/javascript">
document.write('<script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/publib_footer.js?' + Math.floor(new Date()/120000).toString(36) + '="></'+'script>');
</script><script type="text/javascript" src="8619583_files/publib_footer.js"></script><link rel="stylesheet" type="text/css" href="8619583_files/pub_footer_2012.css"><div id="pub_footerall" class="pub_footerall"><dl><dt></dt> <dd><a href="http://www.csdn.net/company/about.html" target="_blank">公司简介</a>|<a href="http://www.csdn.net/company/recruit.html" target="_blank">招贤纳士</a>|<a href="http://www.csdn.net/company/marketing.html" target="_blank">广告服务</a>|<a href="http://www.csdn.net/company/account.html" target="_blank">银行汇款帐号</a>|<a href="http://www.csdn.net/company/contact.html" target="_blank">联系方式</a>|<a href="http://www.csdn.net/company/statement.html" target="_blank">版权声明</a>|<a href="http://www.csdn.net/company/layer.html" target="_blank">法律顾问</a>|<a href="mailto:webmaster@csdn.net">问题报告</a></dd><dd><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2355263776&amp;site=qq&amp;menu=yes" target="_blank" class="qq">QQ客服</a> <a href="http://e.weibo.com/csdnsupport/profile" target="_blank" class="weibo">微博客服</a> <a href="http://bbs.csdn.net/forums/Service" target="_blank" class="online">论坛反馈</a> <a href="mailto:webmaster@csdn.net" class="email">联系邮箱：webmaster@csdn.net</a> <span class="phone">服务热线：400-600-2320</span></dd><dd>京&nbsp;ICP&nbsp;证&nbsp;070598&nbsp;号</dd><dd>北京创新乐知信息技术有限公司 版权所有</dd><dd>世纪乐知(北京)网络技术有限公司 提供技术支持</dd><dd>江苏乐知网络技术有限公司 提供商务支持</dd><dd>Copyright © 1999-2012, CSDN.NET, All Rights Reserved&nbsp;<a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010" target="_blank"><img src="8619583_files/gongshang_logos.gif" alt="GongshangLogo" title=""></a></dd></dl></div><script id="noticeScript" type="text/javascript" btnid="header_notice_num" wrapid="note1" count="5" subcount="5" src="8619583_files/notify.js"></script><script type="text/javascript" charset="utf-8" src="8619583_files/tracking.js"></script>

<script type="text/javascript" src="8619583_files/login.js"></script>
<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script><img src="8619583_files/pv.txt" border="0" height="0" width="0">
<script type="text/javascript" src="8619583_files/counter.js"></script><script type="text/javascript" charset="UTF-8" src="8619583_files/msg.js"></script>


<script type="text/javascript" src="8619583_files/ad-blog.js"></script><script type="text/javascript" src="8619583_files/ad-ms548.js"></script>


<script type="text/javascript" src="8619583_files/count.js"></script><iframe src="8619583_files/logs.htm" frameborder="0" height="0" width="0"></iframe>

</div>

<iframe src="8619583_files/log.swf" style="width: 1px; height: 1px; position: absolute; visibility: hidden;"></iframe></body></html>